import fetch from 'common/src/utils/fetch'

let api = {
    // 查询流程列表
    getList(data) {
        return fetch({
            url: '/api/designservice/settingTime/list',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 流程时间保存 启用 停用
    processSave(data) {
        return fetch({
            url: '/api/designservice/settingTime/save',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    },
    // 查询毕业设计列表
    getDesignList(grade) {
        return fetch({
            url: `/api/designservice/settingTime/designList?grade=${grade}`,
            method: 'get',
            headers: {
                'Content-Type': 'application/json'
            }
        })
    },
    // 毕业设计保存 启用 停用
    designSave(data) {
        return fetch({
            url: '/api/designservice/settingTime/designSave',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        })
    }
}

export default api
